<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewSpeakerTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewSpeakerLabel_speakerID}"/>
                    <h:outputText value="#{speakerController.selected.speakerID}" title="#{bundle.ViewSpeakerTitle_speakerID}"/>
                    <h:outputText value="#{bundle.ViewSpeakerLabel_jobTitle}"/>
                    <h:outputText value="#{speakerController.selected.jobTitle}" title="#{bundle.ViewSpeakerTitle_jobTitle}"/>
                    <h:outputText value="#{bundle.ViewSpeakerLabel_majorSubject}"/>
                    <h:outputText value="#{speakerController.selected.majorSubject}" title="#{bundle.ViewSpeakerTitle_majorSubject}"/>
                    <h:outputText value="#{bundle.ViewSpeakerLabel_college}"/>
                    <h:outputText value="#{speakerController.selected.college}" title="#{bundle.ViewSpeakerTitle_college}"/>
                    <h:outputText value="#{bundle.ViewSpeakerLabel_biographicalInfo}"/>
                    <h:outputText value="#{speakerController.selected.biographicalInfo}" title="#{bundle.ViewSpeakerTitle_biographicalInfo}"/>
                    <h:outputText value="#{bundle.ViewSpeakerLabel_description}"/>
                    <h:outputText value="#{speakerController.selected.description}" title="#{bundle.ViewSpeakerTitle_description}"/>
                    <h:outputText value="#{bundle.ViewSpeakerLabel_person}"/>
                    <h:outputText value="#{speakerController.selected.person}" title="#{bundle.ViewSpeakerTitle_person}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{speakerController.destroyAndView}" value="#{bundle.ViewSpeakerDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewSpeakerEditLink}"/>
                <br />
                <h:commandLink action="#{speakerController.prepareCreate}" value="#{bundle.ViewSpeakerCreateLink}" />
                <br />
                <h:commandLink action="#{speakerController.prepareList}" value="#{bundle.ViewSpeakerShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewSpeakerIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
